Erase Personal Data
In Commerce, you can trigger the erasure of customer personal data in an automated way.
Before You Begin
- Ensure that you are signed into the store with appropriate permissions.
Only sellers with Seller Admins and IT roles have write access to the API. Support users have read access.
Procedure
Note the ID and type of the data item for which you want to initiate an erasure request.
Most get/update/create responses in the Commerce API contain mandatory fields
idandtype. You need to pass this information to the endpoint in the next step.It could be any data item that belongs to the user of interest (for example, a customer or address.)
noteCurrently, personal data management is only enabled for a limited set of endpoints. Please see the personal data for the list of endpoints that support personal data management.
Call the
erasure-requestsPOST endpoint and specify theidandtypein the filter.See Create Personal Data Erasure Request for more information.
Note the erasure request
idin the response and periodically poll theerasure-requestsGET endpoint.Finally, if the
statusfield in the response isSUCCESS, it means that all personal data is removed. Otherwise, you are advised to retry creating an erasure request, and if the problem persists, contact Support.